/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-7      SummerGift   first version
 */

#ifndef __DRV_COMMON_H__
#define __DRV_COMMON_H__

#include "drv_pin.h"

#define EXTERN_STRUCT       typedef struct {\
              uint8_t chMask[sizeof(struct {

#define END_EXTERN_STRUCT(__NAME)  })];\
            }__NAME;

#define DEF_STRUCT       typedef struct {
#define END_DEF_STRUCT(__NAME)   }__##__NAME;


#define STRUCT(__NAME)     __##__NAME

#endif
